using MVP.Domain;
using MVP.DTO;

namespace MVP.Task.Converters
{
    public sealed class CustomerToLookupConverter : ObjectToLookupConverter<ICustomer>
    {
        public override ILookupDTO ConvertFrom(ICustomer customer)
        {
            return new SimpleLookupDTO(customer.Id.ToString(), customer.Mnemonic);
        }
    }
}